package com.erp.quertz.customer;

import com.erp.erp_servers.Customer.imp.ImpCustomerService;
import com.erp.erp_servers.Customer2.imp.ImpCustomer2Service;
import com.erp.quertz.SpringUtil;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class CustomerProcessJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        //客户、供应商发起审批流程后没有成功更新业务表状态时进行状态更新
        ImpCustomerService customerService = SpringUtil.getBean(ImpCustomerService.class);
        ImpCustomer2Service customer2Service = SpringUtil.getBean(ImpCustomer2Service.class);
        int num =0;
         num = customerService.updateStatusByProcessAndCustomer();
        int num2=0;
           num2=customer2Service.updateStatusByProcessAndCustomer2();

    }
}
